.class Lcom/teewoo/app/bus/ui/LinePassByStation$4$1;
.super Ljava/lang/Object;
.source "LinePassByStation.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/teewoo/app/bus/ui/LinePassByStation$4;->run()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# instance fields
.field final synthetic this$1:Lcom/teewoo/app/bus/ui/LinePassByStation$4;


# direct methods
.method constructor <init>(Lcom/teewoo/app/bus/ui/LinePassByStation$4;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$4$1;->this$1:Lcom/teewoo/app/bus/ui/LinePassByStation$4;

    .line 247
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 6
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "id"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 251
    .local p1, parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    move-object v0, p1

    check-cast v0, Landroid/widget/ListView;

    move-object v3, v0

    .line 252
    .local v3, listView:Landroid/widget/ListView;
    invoke-virtual {v3, p3}, Landroid/widget/ListView;->getItemAtPosition(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/teewoo/app/bus/model/Line;

    .line 253
    .local v2, line:Lcom/teewoo/app/bus/model/Line;
    new-instance v1, Landroid/content/Intent;

    iget-object v4, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$4$1;->this$1:Lcom/teewoo/app/bus/ui/LinePassByStation$4;

    invoke-static {v4}, Lcom/teewoo/app/bus/ui/LinePassByStation$4;->access$0(Lcom/teewoo/app/bus/ui/LinePassByStation$4;)Lcom/teewoo/app/bus/ui/LinePassByStation;

    move-result-object v4

    const-class v5, Lcom/teewoo/app/bus/ui/StationInLineDetailActivity;

    invoke-direct {v1, v4, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 254
    .local v1, intentToLocation:Landroid/content/Intent;
    const-string v4, "com.teewoo.app.bus.stationId"

    iget-object v5, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$4$1;->this$1:Lcom/teewoo/app/bus/ui/LinePassByStation$4;

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/LinePassByStation$4;->access$0(Lcom/teewoo/app/bus/ui/LinePassByStation$4;)Lcom/teewoo/app/bus/ui/LinePassByStation;

    move-result-object v5

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$6(Lcom/teewoo/app/bus/ui/LinePassByStation;)I

    move-result v5

    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 255
    const-string v4, "com.teewoo.app.bus.stationName"

    iget-object v5, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$4$1;->this$1:Lcom/teewoo/app/bus/ui/LinePassByStation$4;

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/LinePassByStation$4;->access$0(Lcom/teewoo/app/bus/ui/LinePassByStation$4;)Lcom/teewoo/app/bus/ui/LinePassByStation;

    move-result-object v5

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/LinePassByStation;->access$7(Lcom/teewoo/app/bus/ui/LinePassByStation;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 256
    const-string v4, "com.teewoo.app.bus.lineId"

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/Line;->getId()Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 257
    const-string v4, "com.teewoo.app.bus.lineName"

    invoke-virtual {v2}, Lcom/teewoo/app/bus/model/Line;->getName()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 258
    iget-object v4, p0, Lcom/teewoo/app/bus/ui/LinePassByStation$4$1;->this$1:Lcom/teewoo/app/bus/ui/LinePassByStation$4;

    invoke-static {v4}, Lcom/teewoo/app/bus/ui/LinePassByStation$4;->access$0(Lcom/teewoo/app/bus/ui/LinePassByStation$4;)Lcom/teewoo/app/bus/ui/LinePassByStation;

    move-result-object v4

    invoke-virtual {v4, v1}, Lcom/teewoo/app/bus/ui/LinePassByStation;->startActivity(Landroid/content/Intent;)V

    .line 259
    return-void
.end method
